//
//  Network.h
//  base
//
//  Created by Demi on 10/03/2017.
//  Copyright © 2017 Azazie. All rights reserved.
//

#import <Foundation/Foundation.h>

#import "BaseHTTPSessionManager.h"
#import "AFHTTPSessionManager+BaseRACSupports.h"

NS_ASSUME_NONNULL_BEGIN

@interface Network : NSObject

@end

#define APINetwork Network.APISession
#define APIJSONNetwork Network.APIJSONSession
#define APINetworkNew Network.APISessionNew
#define APINetworkNewJson Network.APISessionJsonNew

@interface Network (AFHTTPSessionManager)
+(NSDictionary *)netCheckSum;
+ (void)setAPIRelativeURL:(NSURL *)relativeURL;

@property (class, nonatomic, readonly, strong) BaseHTTPSessionManager *APISession;
@property (class, nonatomic, readonly, strong) BaseHTTPSessionManager *APIJSONSession;
@property (class, nonatomic, readonly, strong) BaseHTTPSessionManager *APISessionNew;
@property (class, nonatomic, readonly, strong) BaseHTTPSessionManager *APISessionJsonNew;

@end

NS_ASSUME_NONNULL_END
